/**
 * 
 */
package forumTransform.forumTransformID;

import java.util.ArrayList;


/**
 * @author Dan
 *
 */
public class WPost {
	private Double ID;
	private String title;
	
	private String date;
	
	private WAuthor author;
	
	private String URL;
	private String content;
	private String escapedContent;
	private String excerpt;
	private String parent;
	
	private ArrayList<WComment> comments = new ArrayList<WComment>();
	
	public String getEscapedContent(){
		return content.replaceAll("\\<[^>]*>","");
	}
	
	public Double getID() {
		return ID;
	}
	public void setID(Double iD) {
		ID = iD;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public WAuthor getAuthor() {
		return author;
	}
	public void setAuthor(WAuthor author) {
		this.author = author;
	}
	public String getURL() {
		return URL;
	}
	public void setURL(String uRL) {
		URL = uRL;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content 		= content;
		this.escapedContent = content.replaceAll("\\<[^>]*>","");
	}
	public String getExcerpt() {
		return excerpt;
	}
	public void setExcerpt(String excerpt) {
		this.excerpt = excerpt;
	}
	public String getParent() {
		return parent;
	}
	public void setParent(String parent) {
		this.parent = parent;
	}
	public ArrayList<WComment> getComments() {
		return comments;
	}
	public void setComments(ArrayList<WComment> comments) {
		this.comments = comments;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}

	public void setEscapedContent(String escapedContent) {
		this.escapedContent = escapedContent;
	}
	

}
